package controller;

import java.io.Serializable;
import java.util.List;


/**
 * this class will handle all of the message to be handle from the server 
 * @author Jose Luis Garcia && Alvaro Blazquez Checa
 *
 */
public class ServerMessage implements Serializable, Protocol{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private ServerCommands command;
	private List<String> infoList;
	
	/**
	 * this construct will create the command to execute
	 * @param command
	 */
	public ServerMessage(ServerCommands command){
		this.command = command;
		fillMessage();
	}
	/**
	 * this will return the command to execute
	 * @return
	 */
	public ServerCommands getCommand(){
		return command;
	}
	/**
	 * this will return the list of param to be handle 
	 * @return
	 */
	public List<String> getInfoList(){
		return infoList;
	}
	/**
	 * this will set the list of param to be handle
	 * @param infoList
	 */
	public void setInfolist(List<String> infoList){
		this.infoList = infoList;
	}
	
	@Override
	public void fillMessage() {
	}
}	

